.state {
  width: 120px;
  position: absolute;
  top: 0;
  right: 12px;


  p {
    margin-top: 10px;
    line-height: 76px;
    height: 38px;
    padding: 5px 0 0;
    white-space: nowrap;
    clear: both;

  }
}

.border {
  border: 2px solid #000;
  width: 220px;
  padding: 3px;

}


.back {
  position: relative;
  // padding-left: 4px;
  // padding: 2px 2px 2px 2px;
  // box-sizing: border-box;
  overflow: hidden;


  p {
    display: flex;
    align-items: flex-start;
    margin: 0;

    b {
      width: 12px;
      height: 12px;
      padding: 2px;
      border: 2px solid #879372;
      margin: 0 2px 2px 0;
      float: left;

      &::after {
        content: "";
        display: block;
        width: 12px;
        height: 12px;
        background: #879372;
        // overflow: hidden;
      }
    }
  }
}

.matrix {
  position: relative;
  max-width: 680px;
  min-width: 400px;
  height: 100vh;
  min-height: 900px;
  margin: 0 auto;
  box-shadow: 0 0 10px #fff inset;
  border-radius: 20px;
  background-color: #efcc19;
  box-sizing: border-box;
}

.screen {
  width: 390px;
  border: solid 5px;
  border-color: #987f0f #fae36c #fae36c #987f0f;
  margin: 0 auto;
  left: 50%;
  // top: 2em;
  transform: translateX(-50%);
  position: absolute;

  .panel {
    margin: 0 auto;
    background: #9ead86;
    border: 2px solid #494536;
    box-sizing: border-box;
    padding: 10px;

  }
}

.rect{
  width: 470px;
  height: 480px;
  border: #000 solid;
  border-width: 0 10px 10px;
  top: 2em;
  left: 50%;
  padding: 45px 0 0px;
  position: relative;
  transform: translateX(-50%);


  &.drop {
    -webkit-transform: translate(-50%, 5px);
    transform: translate(-50%, 5px);
  }
}


@media screen and (max-width: 400px) {
  .screen {
    transform: scale(1);
    top: 40px;
    left: 30px;
  }

  .rect {
    transform: scale(.6);
    top: -70px;
    left: -45px;
  }
}

// @media screen and (max-height: 900px) {
//   .screen {
//     transform: scale(.8);
//     top: 40px;
//     left: 30px;
//   }
//   .rect {
//     transform: scale(1);
//     top: -70px;
//     left: -45px;
//   }
// }

&.fixed_model_num {
  width: 12px;
  height: 12px;
  padding: 2px;
  border: 2px solid #000;
  margin: 0 2px 2px 0;

  &::after {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    background: #000;
    // overflow: hidden;
  }
}